<template>
  <div class="news-page">
    <TopBar />
    <div class="container">
      <div class="sidebar">
        <div class="category domestic">国内新闻</div>
        <div class="category entertainment">娱乐新闻</div>
        <div class="category sports">体育新闻</div>
      </div>
      <div class="content">
        <DomesticNews />
        <EntertainmentNews />
        <SportsNews />
      </div>
    </div>
    <BottomBar />
  </div>
</template>

<script>
import TopBar from "../components/TopBar.vue";
import BottomBar from "../components/BottomBar.vue";
import DomesticNews from "../components/DomesticNews.vue";
import EntertainmentNews from "../components/EntertainmentNews.vue";
import SportsNews from "../components/SportsNews.vue";

export default {
  name: "NewsPage",
  components: {
    TopBar,
    BottomBar,
    DomesticNews,
    EntertainmentNews,
    SportsNews,
  },
};
</script>

<style scoped>
.news-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.container {
  display: flex;
  flex: 1;
}
.sidebar {
  width: 200px;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}
.category {
  padding: 15px;
  text-align: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}
.domestic {
  background-color: #3498db;
  color: white;
}
.entertainment {
  background-color: #e74c3c;
  color: white;
}
.sports {
  background-color: #2ecc71;
  color: white;
}
.content {
  flex: 1;
  padding: 20px;
}
</style>
